package com.mxl.hsp.threaduse;

import java.util.Date;

public class Thread01 extends Thread {


    public static void main(String[] args) {
        new Thread01().start();
    }


    @Override
    public void run() {
        int index = 1;
        while (true) {
            System.out.println("第" + index + "喵喵!" + new Date().toLocaleString());
            index++;
            if(index > 10){
                break;
            }
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }


}
